#include<iostream>
#include<cmath>
#include<cstdio>
using namespace std;
#define maxn 110
double Equa[maxn][maxn];
double las[maxn];
double eps = 1e-8;

void DoGauss(int n){
    for(int i=1;i<=n;i++){
        double qaq = 1/Equa[i][i];
        for(int j=i;j<=n;j++)Equa[i][j]*=qaq;
        las[i]*=qaq;
        for(int j = i+1;j<=n;j++){
            double qwq = Equa[j][i]/Equa[i][i];
            for(int k = i;k<=n;k++)
                Equa[j][k]-=qwq*Equa[i][k];
            las[j]-=qwq*las[i];
        }
    }
    for(int i=n;i;i--)
        for(int j=1;j<i;j++)
            las[j]-=Equa[j][i]/Equa[i][i]*las[i];
}

int main(){
    int n;
    cin>>n;
    for(int i=1;i<=n;i++){
        for(int j=1;j<=n;j++)
            cin>>Equa[i][j];
        cin>>las[i];
    }    
    DoGauss(n);
    for(int i=1;i<=n;i++)
        if(isnan(las[i])){
            printf("No Solution");
            return 0;
        }
    for(int i=1;i<=n;i++){
        printf("%.2lf\n",las[i]);
    }

}